<style type="text/css">
    .nav-tabs{
        background-color:#F6F6F6;
    }
    .nav-tabs > li > a{
        color:#555 !important;
    }
    .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus{
        color:#4E76FB !important;
    }
    .btn-list {
        position: fixed;
        right: 40px;
    }
    .div-flex {
        display: flex
    }
    .div-flex .form-group {
        margin-right: 50px;
        text-align: center;
        line-height: 25px;
        margin-bottom: 0;
    }
    .tab-pane {
        border: 1px solid #F6F6F6;
    }
    .i-color {
        font-size: 34px;margin-right: 10px;color: #86C3FF;
    }
    .thumbnail {
        display: flow-root;
        width: max-content;
    }
    .thumbnail img {
        width: 50px;
        float: left;
        padding: 5px;
    }
    .text-color{
        color:#777;
    }
    .examine_title{
        font-size: 14px;
        color: #333;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        display: block;
        height: 30px;
    }
    .examine_box{
        padding-left:20px;
        position: relative;
    }
    .examine_box .newicon{
        position: absolute;
        left:0;
        top:0;
        z-index: 2;
    }
    .examine_box .xian{
        width:1px;
        height:100%;
        background:#e6e6e6;
        position: absolute;
        left:4px;
        top:10px;
        z-index: 1;
    }
    .examine_box .examine_bg{
        position: relative;
        margin-top: 15px;
        border-radius: 4px;
        background-color: #f7f8fa;
        font-size: 12px;
        color: #929293;
        padding: 8px;
        line-height: 18px;
    }
    .rowbox{
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .stafflist{
        width: 70px;text-align: center;float: left;
    }
    .stafflist-right{
        width: 30px;text-align: center;float: left;margin: 0 20px;

    }
    .stafflist-right:last-child{
        display: none;
    }
    .stafflist img{
        width: 40px;
        height: 40px;
        margin: 10px;
        border-radius:50%;
    }
    .user-image{
        width: 40px;
        height: 40px;
        border-radius: 50%;

    }
</style>
<div class="panel panel-default panel-intro">
    <input type="hidden" name="ids" id="ids" value="{$ids}"/>
    <div>
        <div class="div-flex">
            <div style="line-height: 35px">
                <div style="font-size: 18px;font-weight: 600;">{$row.project_name}</div>
            </div>
            <div class="btn-list">
                {if $auth->check('project/edit') && in_array($row.admin_id, $childrenAdminIds)}
                <a class="btn btn-success" data-toggle="dropdown" id="edits">编辑</a>
                {/if}
            </div>
        </div>
        <div style="display: flex;justify-self: self-end;"><div> {$row.admin.nickname} 创建于 {:date('Y-m-d H:i:s', $row.createtime)}</div></div>
    </div>

    <div style="margin-top: 10px">
    </div>
    <div>
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#basic" aria-controls="profile" role="tab" data-toggle="tab">项目信息</a></li>
            <li role="presentation"><a href="#list1" aria-controls="profile" role="tab" data-toggle="tab">清单 <span id="listcount">{$infocount[1] > 0 ? '('.$infocount[1].')' : ''}</span></a></li>
            <li role="presentation"><a href="#list2" aria-controls="settings" role="tab" data-toggle="tab">人材机 <span id="rencaijicount">{$infocount[2] > 0 ? '('.$infocount[2].')' : ''}</span></a></li>
            <li role="presentation"><a href="#list3" aria-controls="settings" role="tab" data-toggle="tab">评审材料 <span id="assesscount">{$infocount[3] > 0 ? '('.$infocount[3].')' : ''}</span></a></li>
        </ul>

        <div class="tab-content" style="overflow-y: scroll;height:665px">
            <div role="tabpanel" class="tab-pane active in fade panel-body form-horizontal" id="basic">
                <div class="form-group">
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Project_name')}:</span>
                            <span class="text-black">{$row.project_name}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Project_address')}:</span>
                            <span class="text-black">{$row.project_address}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Pricing_date')}:</span>
                            <span class="text-black">{$row.pricing_date}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Tender_type')}:</span>
                            <span class="text-black">{$tenderTypeList[$row.tender_type] ?? ''}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Project_class')}:</span>
                            <span class="text-black">{$projectConfig.project_class[$row.project_class] ?? ''}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Project_bulid_cost')}:</span>
                            <span class="text-black">{$row.project_bulid_cost}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Project_scale')}:</span>
                            <span class="text-black">{$row.project_scale}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Build_unit')}:</span>
                            <span class="text-black">{$row.build_unit}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Construction_unit')}:</span>
                            <span class="text-black">{$row.construction_unit}</span>
                        </div>
                    </div>
                    
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Structure_type')}:</span>
                            <span class="text-black">{$projectConfig.structure_type[$row.structure_type] ?? '-'}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Build_cost_type')}:</span>
                            <span class="text-black">{$projectConfig.build_cost_type[$row.build_cost_type] ?? '-'}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Pricing_inventory')}:</span>
                            <span class="text-black">{$projectConfig.pricing_inventory[$row.pricing_inventory] ?? '-'}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Build_form')}:</span>
                            <span class="text-black">{$projectConfig.build_form[$row.build_form] ?? '-'}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Taxation_type')}:</span>
                            <span class="text-black">{$projectConfig.taxation_type[$row.taxation_type] ?? '-'}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Contract_name')}:</span>
                            <span class="text-black">{$row.contract_name}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Contract_no')}:</span>
                            <span class="text-black">{$row.contract_no}</span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Project_files')}:</span>
                            <span class="text-black">
                                {foreach name="row.project_files_arr" item="vo"}
                                <a href="{$vo}" target="_blank">{$vo}</a><br>
                                {/foreach}
                            </span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Contract_files')}:</span>
                            <span class="text-black">
                                {foreach name="row.contract_files_arr" item="vo"}
                                <a href="{$vo}" target="_blank">{$vo}</a><br>
                                {/foreach}
                            </span>
                        </div>
                    </div>
                    <div class="col-xs-6 col-sm-5">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Prepared_files')}:</span>
                            <span class="text-black">
                                {foreach name="row.prepared_files_arr" item="vo"}
                                <a href="{$vo}" target="_blank">{$vo}</a><br>
                                {/foreach}
                            </span>
                        </div>
                    </div>
                    <div class="col-xs-12 col-sm-12">
                        <div class="form-group col-sm-10">
                            <span class="text-muted">{:__('Remark')}:</span>
                            <span class="text-black">{$row.remark}</span>
                        </div>
                    </div>
                </div>
            </div>
           
            <div role="tabpanel" class="tab-pane fade panel-body" id="list1">
                <div class="panel panel-info">
                    <div class="panel-body">
                        <div class="widget-body no-padding">
                            <div id="toolbar_list" class="toolbar">
                                <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                                {if  in_array($row.admin_id, $childrenAdminIds)}
                                <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('project_list/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                                <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('project_list/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                                <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('project_list/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                                <a href="javascript:;" class="btn btn-warning {:$auth->check('project_list/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-list" ><i class="fa fa-upload"></i> {:__('Import')}</a>
                                {/if}
                                <a href="javascript:;" class="btn btn-danger btn-toggle-all"><i class="fa fa-plus"></i> {:__('显示全部')}</a>

                            </div>
                            <table id="operation_list" class="table table-striped table-bordered table-hover table-nowrap" 
                            data-operate-edit="{:$auth->check('project_list/edit') && in_array($row.admin_id, $childrenAdminIds)}"
                            data-operate-del="{:$auth->check('project_list/del')  && in_array($row.admin_id, $childrenAdminIds)}"
                            width="100%">
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane fade panel-body" id="list2">
                <div class="panel panel-info">
                    <div class="panel-body">
                        <div class="widget-body no-padding">
                            <div id="toolbar_rencaiji" class="toolbar">
                                <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                                {if in_array($row.admin_id, $childrenAdminIds)}
                                <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('project_rencaiji/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                                <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('project_rencaiji/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                                <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('project_rencaiji/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                                <a href="javascript:;" class="btn btn-warning {:$auth->check('project_rencaiji/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-rencaiji" ><i class="fa fa-upload"></i> {:__('Import')}</a>
                                {/if}
                            </div>
                            <table id="operation_rencaiji" class="table table-striped table-bordered table-hover table-nowrap" 
                            data-operate-edit="{:$auth->check('project_rencaiji/edit') && in_array($row.admin_id, $childrenAdminIds)}"
                            data-operate-del="{:$auth->check('project_rencaiji/del') && in_array($row.admin_id, $childrenAdminIds)}"
                            width="100%">
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane fade panel-body" id="list3">
                <div class="panel panel-info">
                    <div class="panel-body">
                        <div class="widget-body no-padding">
                            <div id="toolbar_assess" class="toolbar">
                                <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                                {if in_array($row.admin_id, $childrenAdminIds)}
                                <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('project_assess/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                                <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('project_assess/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                                <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('project_assess/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                                <a href="javascript:;" class="btn btn-warning {:$auth->check('project_assess/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-rencaiji" ><i class="fa fa-upload"></i> {:__('Import')}</a>
                                {/if}
                            </div>
                            <table id="operation_material" class="table table-striped table-bordered table-hover table-nowrap"
                            data-operate-edit="{:$auth->check('project_assess/edit') && in_array($row.admin_id, $childrenAdminIds)}"
                            data-operate-del="{:$auth->check('project_assess/del') && in_array($row.admin_id, $childrenAdminIds)}"
                                width="100%">
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>